// define(['jquery.min','amazeui','require'],function(){
//     alert("test");
//     console.log($("#css").css({'width':'200px','height':'200px','background':'red'}));
// });

define(['jquery','ztree-core','ztree-exhide','fuzzySearch'],function(){
    var setting = {
        check: {
            enable: true//checkbox
        },
        view: {
            nameIsHTML: true, //允许name支持html				
            selectedMulti: false
        },
        edit: {
            enable: false,
            editNameSelectAll: false
        },
        data: {
            simpleData: {
                enable: true
            }
        }
    };

    var zNodes =[
        { id:1, pId:0, name:"模糊搜索演示 1", t:"id=1", open:true},
        { id:11, pId:1, name:"[]\\^$.|?*+():关键字可以是js正则元字符", t:"id=11"},
        { id:12, pId:1, name:"{}<>'\"~`!@#%&-;:/,=:关键字可以是其他字符", t:"id=12"},
        { id:2, pId:0, name:"模糊搜索演示 2", t:"id=2", open:true},
        { id:21, pId:2, name:"大写ABDEFGHINQRT:关键字查找不区分大小写", t:"id=21"},
        { id:22, pId:2, name:"小写abdefghinqrt:关键字查找不区分大小写", t:"id=21"},
        { id:3, pId:0, name:"模糊搜索演示 3", t:"id=3", open:true },
        { id:31, pId:3, name:"空 格:关键字是空格", t:"id=31"}
    ];

    $(document).ready(function(){
        $.fn.zTree.init($("#treeDemo"), setting, zNodes);
        fuzzySearch('treeDemo','#key',null,true); //初始化模糊搜索方法
    });
});